package model

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ UmsRolePermissionRelationModel = (*customUmsRolePermissionRelationModel)(nil)

type (
	// UmsRolePermissionRelationModel is an interface to be customized, add more methods here,
	// and implement the added methods in customUmsRolePermissionRelationModel.
	UmsRolePermissionRelationModel interface {
		umsRolePermissionRelationModel
	}

	customUmsRolePermissionRelationModel struct {
		*defaultUmsRolePermissionRelationModel
	}
)

// NewUmsRolePermissionRelationModel returns a model for the database table.
func NewUmsRolePermissionRelationModel(conn sqlx.SqlConn, c cache.CacheConf) UmsRolePermissionRelationModel {
	return &customUmsRolePermissionRelationModel{
		defaultUmsRolePermissionRelationModel: newUmsRolePermissionRelationModel(conn, c),
	}
}
